package priv.tuyou.system.po;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import priv.tuyou.po.LogicDeletePo;

/**
 * 后台系统用户
 * @author：涂有
 * @date 2016年12月20日 下午11:51:13
 */
public class SystemUser extends LogicDeletePo{

	/**
	 * id
	 */
	protected long id;
	
	/**
	 * 用户名
	 */
	@NotBlank
	@Length(min=6, max=18)
	protected String username;
	
	/**
	 * 密码
	 */
	@NotBlank
	@Length(min=6, max=18)
	protected String password;
	
	/**
	 * 用户昵称
	 */
	@NotBlank
	@Length(min=1, max=32)
	protected String nickname;
	
	/**
	 * 用户手机号码
	 */
	@NotBlank
	@Length(min=11, max=11)
	protected String phone;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
}
